<template>
  <ul class="mululist">
    <li class="mulu_list_li" v-for="(item,key) in vediolist" :key="key" @click="godetail(item.vid)">
      <img :src="item.picture" alt="">
      <span class="mulu_list_right">
        <p class="mulu_list_text1">{{item.title}}</p>
        <span class="mulu_list_right_bp">
         <WatchAndWrite :read_num="item.read_num"></WatchAndWrite>
          <span class="mulu_list_right_p">{{item.create_time}}</span>
        </span>
      </span>
    </li>
  </ul>
</template>

<script>
import WatchAndWrite from './WatchAndWrite'
export default {
  name: 'VedioList',
  props: {
    vediolist: {
      type: Object | Array
    }
  },
  methods: {
    godetail (e) {
      this.$router.push({ name: 'detailofvedio', path: '/detailofvedio', query: { vid: e } })
    }
  },
  components: {
    WatchAndWrite
  }
}
</script>

<style lang="less" scoped>
  .mulu{
    display: flex;
    justify-content: space-between;
    margin: 15px 15px;
  p:last-child{
    font-size: 13px;
    color: #acacac;
  }
  }
  .mululist{
  .mulu_list_li{
    /*width: 100%;*/
    height: 90px;
    margin: 0 15px;
    border-bottom: 1px solid #f5efef;
    display: flex;
    align-items: center;
  img{
    width:25%;
    height: 70px;
    border-radius: 10px;
  }
  .mulu_list_right{
    width: 75%;
    height: 70px;
    padding-left: 5px;
    overflow: hidden;
  .mulu_list_text1{
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 14px;
    line-height: 18px;
  }
  .mulu_list_right_bp{
    width: 100%;
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    align-items: center;
    margin-top: 15px;
    font-size: 13px;
    color: #acacac;
  }
  }
  }
  }
</style>
